const key = 'token'

export function getToken () {
  return localStorage.getItem(key)
}

export function setToken (newToken) {
  localStorage.setItem(key, newToken)
}

export function clearToken () {
  localStorage.removeItem(key)
}
